package cn.faster.sys.service.impl;

import cn.faster.sys.service.IConfigService;
import lombok.AllArgsConstructor;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @program: faster-framework
 * @description: todo 需要完善
 * @author: 暴力袋鼠哥
 * @create: 2021-11-24 21:51
 **/
@Service
@AllArgsConstructor
public class IConfigServiceImpl implements IConfigService {

    private final StringRedisTemplate redisCache;

    /**
     * 查询是否开启验证码
     * @param configKey
     * @return
     */
    @Override
    public boolean selectCaptchaOnOff(String configKey) {
        String captchaOnOff = selectConfigByKey(configKey);
        if (StringUtils.isEmpty(captchaOnOff)){
            return true;
        }
        return false;
    }

    private String selectConfigByKey(String configKey) {
        return null;
    }
}
